html {
  // 750设计稿中：1REM = 100PX
  font-size: 100px;
}


html,
body,
#app {
  height: 100%;
  overflow: hidden;
}

@CW: #fff;
@CH: rgba(255, 255, 255, 0.5);
@CG: #c20c0c;

.text-clip {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

#app {
  margin: 0 auto;
  max-width: 750px;
  position: relative;
}

// 背景和遮罩层开始
.bg-img,
.bg-mark {
  position: absolute;
  top: -0.2rem;
  left: -0.2rem;
  width: 110%;
  height: 110%;
}

.bg-img {
  z-index: -2;
  background: url(/images/M.gif);
  background-size: contain;
  background-position: -50px 0;
  filter: blur(7px);
  // 移动端兼容问题, 后期添加插件直接解决
  // -webkit-filter: blur(7px);
  // -moz-filter: blur(7px);
  // -ms-filter: blur(7px);
  // -o-filter: blur(7px);
}

.bg-mark {
  z-index: -1;
  background-color: rgba(0, 0, 0, .5);
}

// 背景和遮罩层结束

// 头部区域开始
.head-box {
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2rem;
  overflow: hidden;
  padding: 0.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;


  .right-box {
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    background: url(/images/move.jpg);
    background-size: 100% 100%;
    display: none;

    &.move {
      animation: right-move 1s linear 0s infinite both;
    }
  }

  .leftbox {
    position: relative;
    width: 6.1rem;

    .pic {
      position: absolute;
      top: 0;
      left: 0;
      width: 1.4rem;
      height: 1.4rem;
    }

    h2,
    h3 {
      margin-left: 1.4rem;
      font-size: 0.34rem;
      color: @CW;
      line-height: 0.7rem;
      .text-clip;
    }

    h3 {
      font-size: 0.3rem;
    }
  }
}

@keyframes right-move {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

// 头部区域结束

// 歌词区域开始
.mainbox {
  box-sizing: border-box;
  height: 100%;
  padding: 2rem 0 2.13rem 0;

  .lyric {
    height: 100%;
    position: relative;
    overflow: hidden;

    .wrapper {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      transition: transform .3s;
      transform: translateY(0);

      p {
        height: 1ren;
        line-height: 1rem;
        text-align: center;
        font-size: 0.3rem;
        color: @CH;
        padding: 0 .2rem;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;

        &.active {
          color: @CG;
          transition: color .3s;
        }
      }
    }
  }
}

// 歌词区域结束

// 底部区域开始
.footer {
  box-sizing: border-box;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.13rem;
  overflow: hidden;
  padding: 0.2rem;


  .download {
    display: flex;
    width: 4.26rem;
    height: 0.8rem;
    line-height: 0.8rem;
    border-radius: 0.5rem;
    margin: 0 auto;
    background-color: @CG;
    background-size: 0.8rem 7rem;
    font-size: 0.36rem;
    color: @CW;
    text-align: center;
    text-indent: 0.6rem;

    &:active {
      background-color: darken(@CG, 20%);
    }
  }

  .progress {
    display: flex;
    justify-content: space-between;
    align-items: center;

    .already,
    .duration {
      width: 1rem;
      height: 0.92rem;
      line-height: 0.92rem;
      text-align: center;
      font-size: 0.24rem;
      color: @CH;
    }

    .back {
      height: 0.04rem;
      flex-grow: 1;
      background-color: @CH;
      position: relative;

      .rate {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        // width: 50%;
        background-color: @CG;
        transition: width 0.1s;
      }
    }
  }
}

// 底部区域结束

// 音频开始
#myaudio {
  display: none;
}

// 音频结束